
{% block canvas %}

<ul class="itemlist">
<h2 id="cartheader">Cart</h2>
<!--  cartpk is actually the pk of carthasitem -->
{% for quantity, item, sum, cartpk, img in item_list %}
<div id="itemlist" class="inner">
  <li id="listitems" class="cart"><a href="/RetailStore/store/itemdetails/{{item.pk}}"><img class="itemdetails" src={{STATIC_URL}}{{img}} alt="no image" /></a>
<p>price: {{item.price}}</p>
<p> description: {{item.description}} </p>
  <form action="/retailstore/shoppingcart/changenumber/{{item.pk}}/" method="post">{% csrf_token %}
  {{quantity.as_p}}
  <input type="submit" value="Change Quantity" />
  </form>
  <p>Sum:{{sum}}</p>
  
  </li>
  



{% endfor %}
{% if total %}
<p id="sum" class="cart">total:{{total}}</p>
<form action="/retailstore/shoppingcart/checkout/">
	<input type="submit" value="Proceed to Check Out">
</form>
{% endif %}
</div>

</ul>

{% endblock %}